<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!-- 引入ElementUI样式 -->
    <script src="../element 2.12.0/vue.js"></script>
    <script src="../element 2.12.0/index.js"></script>
    <link rel="stylesheet" href="../element 2.12.0/index.css">

</head>

    <div id="app">
        <el-pagination
                @current-change="handleCurrentChange"
                current-page="5"
                page-size="10"
                layout="total, prev, pager, next, jumper"
                :total="305">
        </el-pagination>
        <script>
            new Vue({
                el:'#app',
                methods:{
                    handleCurrentChange(page){
                        alert(page);
                    }
                }
            });
        </script>
    </div>

</body>
</html>